var mongoose = require("./db.js")

var Schema = mongoose.Schema;

var CommentSchema = new Schema({
    //评论内容
    CommentContent:{type:String},
    //评论时间
    CommentTime:{type:String},
    //被评论商品
    CommentCommodityId:mongoose.Types.ObjectId,
    //评论星级
    CommentStar:{type:String},
    //评论图片
    CommentImgs:{type:Array},
    //评论人信息
    CommentUserInfo:{type:Object},
    //评论人openId
    CommentUserOpenId:{type:String}
})
var Comment = mongoose.model("Comment",CommentSchema,"Comment")
module.exports = Comment
